import QtQuick 1.0

Image {
    id: idButton

    signal pressed

    Behavior on opacity { NumberAnimation { duration: 100  } }
    MouseArea {
        id: mouseRegion
        anchors.fill: parent
        onClicked: idButton.pressed();
    }
    states: [
        State {
            name: "Pressed"
            when: mouseRegion.pressed == true
            PropertyChanges { target: idButton; opacity: 0.5 }
        },
        State {
            name: "Hidden"
            PropertyChanges { target: idButton; opacity: 0 }
        }
    ]


}
